home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-02-25 | 1.8 KB | 75 lines | [TEXT/MPS ] |
- # File: test.PPC.SA.make
- # Target: test
- # Sources: test.c
-
- Makefile = :MPW_Support:test.PPC.SA.make
-
- object_folder = ":MPW_Support:objects_PPC:"
-
- fsource = test.f
-
- csource = F2Cmain.c
-
- fobjs = {object_folder}'test.f.o'
-
- cobjs = {object_folder}'F2Cmain.c.o'
-
-
- objects = {fobjs} ∂
- {cobjs}
-
- PPCC = MWCPPC
- PPCCOptions = -align power -w off -nomapcr
-
- F2C = F2C
- F2COptions = -f -!i8 -A -E -ec -a -!R -r8 -w66
-
- PPCLink = MWLinkPPC
- PPCLinkOptions = -d
-
- test.PPC.SA ƒƒ {objects} {Makefile}
- {PPCLink} {PPCLinkOptions} ∂
- {OBJECTS} ∂
- "{MWPPCLibraries}ANSI C.PPC.Lib" ∂
- "{MWPPCLibraries}"MWCRuntime.Lib ∂
- "{SharedLibraries}"InterfaceLib ∂
- "{MWPPCLibraries}SIOUX.PPC.Lib" ∂
- "{SharedLibraries}"MathLib ∂
- "{F2CLibraries}"libI77SA.PPC ∂
- "{F2CLibraries}"libF77SA.PPC ∂
- -o test.PPC.SA
-
- .f.o ƒ .f
- {F2C} {F2COptions} {Default}.f #compile the fortran and then compile the resulting C file.
- setfile -t "TEXT" -c "MPS " {default}.c
- {PPCC} {default}.c {PPCCOptions} ∂
- -o {targDir}{default}.f.o
-
-
- .c.o ƒ .c
- {PPCC} {default}.c {PPCCOptions} ∂
- -o {targDir}{default}.c.o
-
-
- # If your FORTRAN code has common blocks add common.c.o to the cobjs list
- # and then this rule should take care of it
- common.c ƒ {fobjs}
- setfile -t "TEXT" -c "MPS " ?+_com.c
- catenate ?+_com.c > {targDir}{Targ} #This puts all the common block files into one file for compiling.
- #The wild card lets us add common blocks to the fortran code
- #without having to change the makefile! The common block files all
- #end with _com.c
-
- {objects} ƒ {Makefile} #do a full rebuild if the makefile changes
-
- {object_folder} ƒ :
-
- {object_folder}'test.f.o' ƒ 'test.f'
-
- {object_folder}'F2Cmain.c.o' ƒ 'F2Cmain.c'
-
- {object_folder}'common.c.o' ƒ 'common.c'
-
- # makefile end
-
-